_s_i_z_e Specifies the maximum number of values that can be written into
_b_u_f_f_e_r.
_t_y_p_e Specifies a symbolic constant that describes the information that
will be returned for each vertex. GGGGLLLL____2222DDDD, GGGGLLLL____3333DDDD, GGGGLLLL____3333DDDD____CCCCOOOOLLLLOOOORRRR,
GGGGLLLL____3333DDDD____CCCCOOOOLLLLOOOORRRR____TTTTEEEEXXXXTTTTUUUURRRREEEE, and GGGGLLLL____4444DDDD____CCCCOOOOLLLLOOOORRRR____TTTTEEEEXXXXTTTTUUUURRRREEEE are accepted.
_b_u_f_f_e_r Returns the feedback data.
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
The ffffggggllllFFFFeeeeeeeeddddbbbbaaaacccckkkkBBBBuuuuffffffffeeeerrrr function controls feedback. Feedback, like
selection, is a GL mode. The mode is selected by calling ffffggggllllRRRReeeennnnddddeeeerrrrMMMMooooddddeeee
with GGGGLLLL____FFFFEEEEEEEEDDDDBBBBAAAACCCCKKKK. When the GL is in feedback mode, no pixels are
produced by rasterization. Instead, information about primitives that
would have been rasterized is fed back to the application using the GL.
ffffggggllllFFFFeeeeeeeeddddbbbbaaaacccckkkkBBBBuuuuffffffffeeeerrrr has three arguments: _b_u_f_f_e_r is a pointer to an array
of floating-point values into which feedback information is placed. _s_i_z_e
indicates the size of the array. _t_y_p_e is a symbolic constant describing
the information that is fed back for each vertex. ffffggggllllFFFFeeeeeeeeddddbbbbaaaacccckkkkBBBBuuuuffffffffeeeerrrr must
be issued before feedback mode is enabled (by calling ffffggggllllRRRReeeennnnddddeeeerrrrMMMMooooddddeeee with
argument GGGGLLLL____FFFFEEEEEEEEDDDDBBBBAAAACCCCKKKK). Setting GGGGLLLL____FFFFEEEEEEEEDDDDBBBBAAAACCCCKKKK without establishing the
feedback buffer, or calling ffffggggllllFFFFeeeeeeeeddddbbbbaaaacccckkkkBBBBuuuuffffffffeeeerrrr while the GL is in feedback
mode, is an error.
When ffffggggllllRRRReeeennnnddddeeeerrrrMMMMooooddddeeee is called while in feedback mode, it returns the
number of entries placed in the feedback array, and resets the feedback
array pointer to the base of the feedback buffer. The returned value
never exceeds _s_i_z_e. If the feedback data required more room than was
available in _b_u_f_f_e_r, ffffggggllllRRRReeeennnnddddeeeerrrrMMMMooooddddeeee returns a -1. To take the GL out of
feedback mode, call ffffggggllllRRRReeeennnnddddeeeerrrrMMMMooooddddeeee with a parameter value other than
GGGGLLLL____FFFFEEEEEEEEDDDDBBBBAAAACCCCKKKK.
While in feedback mode, each primitive, bitmap, or pixel rectangle that
would be rasterized generates a block of values that are copied into the
feedback array. If doing so would cause the number of entries to exceed
the maximum, the block is partially written so as to fill the array (if
there is any room left at all), and an overflow flag is set. Each block
begins with a code indicating the primitive type, followed by values that
describe the primitive's vertices and associated data. Entries are also
written for bitmaps and pixel rectangles. Feedback occurs after polygon
GGGGLLLL____DDDDRRRRAAAAWWWW____PPPPIIIIXXXXEEEELLLL____TTTTOOOOKKKKEEEENNNN, GGGGLLLL____CCCCOOOOPPPPYYYY____PPPPIIIIXXXXEEEELLLL____TTTTOOOOKKKKEEEENNNN and GGGGLLLL____PPPPAAAASSSSSSSS____TTTTHHHHRRRROOOOUUUUGGGGHHHH____TTTTOOOOKKKKEEEENNNN are
symbolic floating-point constants. GGGGLLLL____LLLLIIIINNNNEEEE____RRRREEEESSSSEEEETTTT____TTTTOOOOKKKKEEEENNNN is returned
whenever the line stipple pattern is reset. The data returned as a
vertex depends on the feedback _t_y_p_e.
The following table gives the correspondence between _t_y_p_e and the number
of values per vertex. _k is 1 in color index mode and 4 in RGBA mode.
GGGGLLLL____3333DDDD____CCCCOOOOLLLLOOOORRRR _x, _y, _z k 3+k
GGGGLLLL____3333DDDD____CCCCOOOOLLLLOOOORRRR____TTTTEEEEXXXXTTTTUUUURRRREEEE _x, _y, _z, k 4 7+k
GGGGLLLL____4444DDDD____CCCCOOOOLLLLOOOORRRR____TTTTEEEEXXXXTTTTUUUURRRREEEE _x, _y, _z, _w k 4 8+k
Feedback vertex coordinates are in window coordinates, except _w, which is
in clip coordinates. Feedback colors are lighted, if lighting is
enabled. Feedback texture coordinates are generated, if texture
coordinate generation is enabled. They are always transformed by the
texture matrix.
NNNNOOOOTTTTEEEESSSS
ffffggggllllFFFFeeeeeeeeddddbbbbaaaacccckkkkBBBBuuuuffffffffeeeerrrr, when used in a display list, is not compiled into the
display list but is executed immediately.
EEEERRRRRRRROOOORRRRSSSS
GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____EEEENNNNUUUUMMMM is generated if _t_y_p_e is not an accepted value.
GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____VVVVAAAALLLLUUUUEEEE is generated if _s_i_z_e is negative.
GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____OOOOPPPPEEEERRRRAAAATTTTIIIIOOOONNNN is generated if ffffggggllllFFFFeeeeeeeeddddbbbbaaaacccckkkkBBBBuuuuffffffffeeeerrrr is called while
the render mode is GGGGLLLL____FFFFEEEEEEEEDDDDBBBBAAAACCCCKKKK, or if ffffggggllllRRRReeeennnnddddeeeerrrrMMMMooooddddeeee is called with
argument GGGGLLLL____FFFFEEEEEEEEDDDDBBBBAAAACCCCKKKK before ffffggggllllFFFFeeeeeeeeddddbbbbaaaacccckkkkBBBBuuuuffffffffeeeerrrr is called at least once.
GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____OOOOPPPPEEEERRRRAAAATTTTIIIIOOOONNNN is generated if ffffggggllllFFFFeeeeeeeeddddbbbbaaaacccckkkkBBBBuuuuffffffffeeeerrrr is executed
between the execution of ffffggggllllBBBBeeeeggggiiiinnnn and the corresponding execution of